package com.xbongbong.pro.dynamic.pojo.dto;

import com.xbongbong.pro.detailtab.dto.team.TeamDetailRenameDTO;
import com.xbongbong.saas.domain.entity.ext.CustomerEntityExt;
import com.xbongbong.sys.domain.entity.UserEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 *团队修改名称
 *
 *@author weijianxun
 */
@Setter
@Getter
@ToString
public class DynamicEditTeamDTO implements Serializable {
    private static final long serialVersionUID = -6746410175810812569L;
    private TeamDetailRenameDTO teamDetailRenameDTO;
    private CustomerEntityExt customerEntityExt;
    /**
     * 被修改负责人的信息
     */
    private UserEntity userEntity;

    public static DynamicEditTeamDTO initDynamicEditTeamDTO(TeamDetailRenameDTO teamDetailRenameDTO,
                                                            CustomerEntityExt customerEntityExt, UserEntity userEntity) {
        DynamicEditTeamDTO dynamicEditTeamDTO = new DynamicEditTeamDTO();
        dynamicEditTeamDTO.setCustomerEntityExt(customerEntityExt);
        dynamicEditTeamDTO.setTeamDetailRenameDTO(teamDetailRenameDTO);
        dynamicEditTeamDTO.setUserEntity(userEntity);
        return dynamicEditTeamDTO;
    }
}
